package proxyModel;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class GampePlayIH implements InvocationHandler {

    Class cls=null;

    Object obj=null;

    public GampePlayIH(Object obj){
        this.obj=obj;
    }

    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        Object result=method.invoke(this.obj,args);
        if(method.getName().equalsIgnoreCase("login")){
            System.out.println("我的账号被登录了");
        }
        return result;
    }
}
